package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.MarketUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 用户管理-会员管理
 * 创建日期: 2022/04/06 16:50
 *
 * @author HanWeiqi
 */
@NoArgsConstructor
@Data
public class UserListVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<MarketUser> list;

    public static UserListVO data(long total,Integer pages,Integer limit,Integer page,List list) {
        UserListVO userListVO = new UserListVO();
        userListVO.setTotal((int) total);
        userListVO.setPages(pages);
        userListVO.setPage(page);
        userListVO.setLimit(limit);
        userListVO.setList(list);
        return userListVO;
    }
}
